package com.dinner.model;

import java.util.List;

import com.dinner.util.PageHelper;

public interface OrderDao {

	public void saveOrder(Order order);

	public void completeOrder(String consumerID, int orderID,
			byte expectedState, byte newState);

	public void handleOrder(String sellerID, int orderID, 
			byte expectedState, byte newState);

	public List<Order> getOrderBySeller(String sellerID, byte state);

	public List<Order> getOrderByConsumer(String consumerID, byte state);

	public List<Order> getOrderByConsumerAndPage(String userID, byte state,
			PageHelper p);

	public List<Order> getOrderBySellerAndPage(String userID, byte state,
			PageHelper p);
}
